#pragma once
typedef int Status;
typedef int SElemType;
#define OK 1 
#define OVERFLOW -2
#define ERROR -1
#define TRUE 1
#define FALSE 0
#define MAXSIZE 100

typedef struct
{
	int stacksize;
	SElemType* base;
	SElemType* top;
}SqStack;
Status InitStack(SqStack& S);
Status DestroyStack(SqStack& S);
Status StackEmpty(SqStack S);
int StackLength(SqStack S);
Status GetTop(SqStack S, SElemType &e);
Status ClearStack(SqStack& S);
Status Push(SqStack& S, SElemType e);
Status Pop(SqStack& S, SElemType &e);